/*
 * @Author: DUST
 * @Date: 2023-05-31 10:20:04
 * @LastEditors: DUST
 * @LastEditTime: 2023-05-31 14:27:16
 * @FilePath: \koa-node-ts\app\router\tags.ts
 * @Description: 
 * undefined
 */
import koaRouter from "koa-router";
import TagsController from "../controller/TagsController";

const tagsRouter = new koaRouter();

tagsRouter.prefix("/tags");

// 获取标签列表
tagsRouter.get("/list", TagsController.getTagsList);
// 新增标签
tagsRouter.post("/add", TagsController.addTag);
// 编辑标签
tagsRouter.put("/edit", TagsController.editTag);
// 删除标签
tagsRouter.delete("/delete/:id", TagsController.deleteTag);

export default tagsRouter;